<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    .contria{
        width: 500px;
        height: 600px;
        background-color: rebeccapurple;
    }
    .message{
        width: 100px;
        height: 200px;
        float: left;
        background-color: mediumvioletred;
    }

    .message.c2{
        background-color: royalblue;
    }
    .message.c3{
        background-color: yellowgreen;
    }
</style>
<body>
<div class="contrain">
    <div class="message"></div>
    <div class="message c2"></div>
    <div class="message c3"></div>

</div>
</body>
</html>